package com.ny.demo428;

public class InsurancePolymorphismExample {
    public static void main(String[] args) {
        Insurance carInsurance = new CarInsurance(200000, 1);
        System.out.println("Car Insurance Premium: " + carInsurance.calculatePremium());

        Insurance homeInsurance = new HomeInsurance(300000, 120);
        System.out.println("Home Insurance Premium: " + homeInsurance.calculatePremium());
    }
}
